<html><head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class attributes" rel=Appendix href="index_attributes.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Joueur" rel="Chapter" href="Joueur.html">
<link title="Joueur2" rel="Chapter" href="Joueur2.html">
<link title="Joueur3" rel="Chapter" href="Joueur3.html">
<link title="Joueur4" rel="Chapter" href="Joueur4.html"><title>Joueur3.gestion_vote</title>
</head>
<body>
<code class="code"><span class="keyword">let</span>&nbsp;gestion_vote&nbsp;moi&nbsp;moment_du_vote=<br>
&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">let</span>&nbsp;is_participant&nbsp;=&nbsp;(get_participants&nbsp;moi)&nbsp;<span class="keyword">in</span><br>
&nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">match</span>&nbsp;moment_du_vote&nbsp;<span class="keyword">with</span><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>0<span class="keywordsign">-&gt;</span>moi<span class="keywordsign">#</span>reset_vote<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>1<span class="keywordsign">|</span>2<span class="keywordsign">-&gt;</span>&nbsp;(analyse_du_vote&nbsp;moi&nbsp;is_participant);moi<span class="keywordsign">#</span>reset_vote<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>3&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;fin_du_vote&nbsp;moi<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="keywordsign">|</span>_&nbsp;<span class="keywordsign">-&gt;</span>&nbsp;<span class="constructor">Printf</span>.printf&nbsp;<span class="string">"%i:&nbsp;le&nbsp;vote&nbsp;est&nbsp;dit&nbsp;au&nbsp;%i&nbsp;-ieme&nbsp;moment,&nbsp;ca&nbsp;me&nbsp;parait&nbsp;bizarre\n"</span>&nbsp;moi<span class="keywordsign">#</span>get_id&nbsp;moment_du_vote</code></body></html>